package com.bjpowernode;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * Created by Germmy on 2018/7/2.
 */
@Aspect
@Component
public class SecureHandler {

    @Pointcut("execution(* add*(..))")
    private void addAddMethod(){}

    @After("addAddMethod()")
    public  void safeCheck(){
        System.out.println("safe check...");
    }


}
